package org.jeecg.modules.door.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 门锁分组管理
 * room_id字段加唯一主键
 * @Author: jeecg-boot
 * @Date:   2022-06-15
 * @Version: V1.0
 */
@Data
@TableName("lwgy_joint_door")
@ApiModel(value="lwgy_joint_door对象", description="门锁管理")
public class LwgyEglock implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "房间id")
    private String roomId;
	/**组名称*/
    @Excel(name = "门锁标识", width = 15)
    @ApiModelProperty(value = "门锁标识")
    private String doorCode;
	/**备注*/

    @Excel(name = "门锁状态", width = 15, dicCode = "eglock_state")
    @Dict(dicCode = "eglock_state")
    @ApiModelProperty(value = "门锁状态")
    private String doorState;
    /**校区*/
    @Excel(name = "校区", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "校区")
    /*@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String xq;
    /**楼号*/
    @Excel(name = "楼号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "楼号")
/*    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String lh;
    /**层号*/
    @Excel(name = "单元号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "单元号")
  /*  @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String unit;
    /**层号*/
    @Excel(name = "层号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "层号")
    /*@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String ch;
    /**房间号*/
    @Excel(name = "房间号", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "房间号")
/*    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")*/
    private java.lang.String fjh;

    private java.lang.String type;
}
